{{#extends @html/widget/feed/widget.html}}

{{:widget_class}}wg-selector wg-doctypes-menu{{/:widget_class}}
{{:widget_title}}Показать в ленте{{/:widget_title}}

{{:widget_body}}
	{{?widget.menu}} <!-- определялка пустоты виджета -->

	{{!connect "decoration/widget/selector.css"}}

	{{!connect "widget/feed/doctypes_menu.js"}}

		<form action="{{widget.actionFilter}}">
			{{!for widget.menu do=@:menu_item}}
			{{:menu_item}}
				{{?For.first}}
					<fieldset class="fieldbox- first-">
						<input type="checkbox" class="checkbox-" name="{{widget.rq_doctype}}[]" value="{{For.key}}" {{?*checked}}checked{{/?}} />
						<a href="{{*url|safe}}" class="label-">{{*type.typename}}</a>
					</fieldset>
				{{?:For.last}}
					<fieldset class="fieldbox- last-">
						<input type="checkbox" class="checkbox-" name="{{widget.rq_doctype}}[]" value="{{For.key}}" {{?*checked}}checked{{/?}} />
						<a href="{{*url|safe}}" class="label-">{{*type.typename}}</a>
					</fieldset>
				{{?:}}
					<fieldset class="fieldbox-">
						<input type="checkbox" class="checkbox-" name="{{widget.rq_doctype}}[]" value="{{For.key}}" {{?*checked}}checked{{/?}} />
						<a href="{{*url|safe}}" class="label-">{{*type.typename}}</a>
					</fieldset>
				{{/?}}
			{{/:menu_item}}
			<input type="submit" value="Показать" class="more-" />
		</form>

	{{/?}} <!-- конец определялки пустоты виджета -->

{{/:widget_body}}
